package com.itheima.homework8.secondwork;

import java.util.TreeSet;

public class Test01 {
    public static void main(String[] args) {
        TreeSet<Car1> ts1=new TreeSet<>();
        ts1.add(new Car1("benchi",300000,2000));
        ts1.add(new Car1("baoma",300000,2500));
        ts1.add(new Car1("aodi",250000,3000));
        ts1.add(new Car1("baoshijie",500000,2000));
        ts1.add(new Car1("wulinghongguang",100000,8000));
        ts1.add(new Car1("changcheng",100000,8000));
        ts1.add(new Car1("lanbojini",900000,1000));
        System.out.println("ts1 = " + ts1);
    }
}
